{{ partial "head.html" . }}
  <body>
    <div id="blog">
      {{ partial "header.html" . }}
      {{ partial "sidebar.html" . }}
      {{ partial "post/header-cover.html" . }}
      <div id="main" data-behavior="{{ .Scratch.Get "sidebarBehavior" }}"
        class="{{ with .Params.coverImage }}hasCover{{ end }}
               {{ if eq .Params.coverMeta "out" }}hasCoverMetaOut{{ else }}hasCoverMetaIn{{ end }}
               {{ with .Params.coverCaption }}hasCoverCaption{{ end }}">

        <div id="tags-archives" class="main-content-wrap">
          <form id="filter-form" action="#">
            <input name="tag" type="text" class="form-control input--xlarge" placeholder="{{ i18n "global.search_tag" }}" autofocus="autofocus">
          </form>
          <h4 class="archive-result text-color-base text-xlarge"
              data-message-zero="{{ i18n "global.tags_found.zero" }}"
              data-message-one="{{ i18n "global.tags_found.one" }}"
              data-message-other="{{ i18n "global.tags_found.other" }}"></h4>

            <section>
              {{ range .Data.Terms.ByCount }}
                <a class="tag tag--primary tag--small" href="#{{ .Name | urlize }}-list" data-tag="{{ .Name | lower }}">
                  {{ .Name }}
                </a>
              {{ end }}
            </section>
            <section class="boxes">
              {{ range .Data.Terms.ByCount }}
                <div id="{{ .Name | urlize }}-list" class="archive box" data-tag="{{ .Name | lower }}">
                  <h4 class="archive-title">
                    <a class="link-unstyled" href="{{ .Name | urlize }}">
                      {{ .Name }} ({{ .Pages | len }})
                    </a>
                  </h4>
                  <ul class="archive-posts">
                    {{ range .Pages.ByDate }}
                      <li class="archive-post">
                        <a class="archive-post-title" href="{{ .Permalink }}">
                          {{ .Title }}
                        </a>
                        <span class="archive-post-date"> - {{ partial "internal/date" . }}</span>
                      </li>
                    {{ end }}
                  </ul>
                </div>
              {{ end }}
           </section>
         </div>
        {{ partial "footer.html" . }}
      </div>
    </div>
    {{ partial "about.html" . }}
    {{ partial "cover.html" . }}
  </body>
  {{ partial "script.html" . }}
</html>
